package cn.edu.hy.demo07.entity;

public class Student {

    private int stuNo;
    private String stuName;
    private int grade;
    private String dept;
    private String className;

    public Student(int stduentNo, String stuName, int grade, String dept, String className) {
        setStuNo(stduentNo);
        setStuName(stuName);
        setGrade(grade);
        setDept(dept);
        setClassName(className);
    }

    public Student() {

    }

    public int getStuNo() {
        return stuNo;
    }

    public void setStuNo(int stuNo) {
        this.stuNo = stuNo;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String toString() {
        return "Student [stuNo=" + stuNo + ", stuName=" + stuName + ", grade=" + grade + ", dept=" + dept
                + ", className=" + className + "]";
    }
}
